package com.liuxin.mycontactdemo.untils;

import java.util.HashMap;
import android.os.Handler;

public class ThreadUtils {
    //启动普通线程
    public static void runInThread(Runnable task) {
        new Thread(task).start();
    }
    //启动UI下的线程
    public static Handler handler=new Handler();
    public static void runInUIThread(Runnable task)
    {
        handler.post(task);
    }

}
